      <script>var global_site_url = '<?php echo site_url('');?>';</script>
      <div class="wrap">
        <div id="header">
          <div id="logo"><a href="<?php echo site_url(); ?>"><?php echo SITE_NAME; ?></a></div>

          <?php
          	if('reg' != $this->uri->segment(1) && 'notice' != $this->uri->segment(2)){
          		if($this->dx_auth->is_logged_in()){ ?>
          <form method="POST" id="bodysignup" style="overflow:hidden;*zoom:1">
            <div class="formbox formbox_right">
            </div>
            <p class="clear"></p>
          </form>

          <?php } else { ?>
          <form method="POST" style="padding-top:15px;width:290px;overflow:hidden;*zoom:1" action="<?php echo site_url('reg/reg2'); ?>" id="bodysignup">
            <div style="padding-left:20px;color:darkgreen;width:300px;font-size:16px;font-weight:bold;height:30px;margin-top:18px">订制你自己的团购信息！</div>
            <div class="formbox" style="margin-right:5px">
              <input type="text" class="forminput" style="width:120px" value="<?php echo isset($post_email) && $post_email ? $post_email : '电子邮箱地址'; ?>" id="signup-email" title="Email Address" name="email" />
            </div> 
            <div class="formbox" style="margin-right:5px">
              <div class="selector" style="width:60px">
                <span style="width:50px;background-position:-433px 0;padding-right:12px">北京</span>
                <select name="city" class="signup-location" id="id_city" style="width:50px">
                <?php  foreach ($all_city as $c){ ?>
                  <option value="<?php echo $c['city_id']; ?>"><?php echo $c['city']; ?></option>
                <?php } ?>
                </select>
              </div>
            </div> 
            <div class="formbox formbox_right" style="margin-right:0">
              <a href="#this" style="display:block;float:left;padding-top:7px;text-decoration:underline;vertical-align:middle;margin:0" onclick="$(this).parents('form').eq(0).submit();">订阅</a>
              <a id="loginLink" style="display:block;float:left;padding-top:7px;text-decoration:underline;vertical-align:middle;margin:0 0 0 10px" href="#this">登录</a>
            </div>
          <div class="signUpErr">
          <?php
            echo isset($post_err)?$post_err:'';
          ?>
          </div>
            <p class="clear"></p>
          </form>
          <?php }
          	}else {
          ?>
          <div style='float:right;width:400px;height:30px;margin-top:50px;background:url(../../code/img/font.png) no-repeat;-background-image: none;
		-filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../../code/img/font.png", sizingMethod="crop");-cursor:pointer;'></div>
          <?php } ?>

          <div class="clear"></div>
        </div><!-- end #header -->
      </div>